package com.example.databasepj.dto;

public class UserData {
    //{
    //  "user_ID": 1,
    //  "user_name": "张三",
    //  "gender": 0, // 0 表示男性, 1 表示女性
    //  "studentOrWorkNumber": 20210001,
    //  "age": 20,
    //  "role": 0, // 0 表示学生, 1 表示教职工
    //  "password": "123456"
    //}
    private int user_ID; // 使用下划线命名以避免Java关键字
    private String user_name;
    private int gender; // 可以使用枚举代替整型，以提高代码可读性
    private int studentOrWorkNumber;
    private int age;
    private int role; // 可以使用枚举代替整型
    private String password;

    public UserData(int user_ID, String user_name, int gender, int studentOrWorkNumber, int age, int role, String password) {
        this.user_ID = user_ID;
        this.user_name = user_name;
        this.gender = gender;
        this.studentOrWorkNumber = studentOrWorkNumber;
        this.age = age;
        this.role = role;
        this.password = password;
    }

    public int getUser_ID() {
        return user_ID;
    }

    public void setUser_ID(int user_ID) {
        this.user_ID = user_ID;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getStudentOrWorkNumber() {
        return studentOrWorkNumber;
    }

    public void setStudentOrWorkNumber(int studentOrWorkNumber) {
        this.studentOrWorkNumber = studentOrWorkNumber;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
